//调用接口配置文件
import { request } from 'config/request'
import config from 'config/config'
// 定义接口

//新增
export async function addFun(params) {
    return request({
        url: `${config.aheadPlan}admin/attributeGroup/attributeGroup/add`,
        method: 'POST',
        data: params,
    });
  };

  //编辑
export async function editFun(params) {
    return request({
        url: `${config.aheadPlan}admin/attributeGroup/attributeGroup/edit`,
        method: 'POST',
        data: params,
    });
  };

//查询
export async function queryInfo(params) {
    return request({
        url: `${config.aheadPlan}admin/attributeGroup/attributeGroup/queryById`,
        method: 'GET',
        data: params,
    });
  };

  //获取区域
export async function findProduct(params) {
    return request({
        url: `${config.aheadPlan}admin/product/product/findProduct`,
        method: 'GET',
        data: params,
    });
  };

  //获取系统项
export async function getPranentAtt(params) {
  return request({
      url: `${config.aheadPlan}admin/attributeGroup/attributeGroup/getPranentAtt`,
      method: 'GET',
      data: params,
  });
};